package com.ruoyi.riskAssessment.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 危险源-风险台账对象 risk_ledger
 *
 * @author lth
 * @date 2023-12-15
 */
public class RiskLedger extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 风险源台账ID */
    @JsonSerialize(using = ToStringSerializer.class)
    private String riskLedgerId;

    /** 风险编号 */
    @Excel(name = "风险编号")
    private String riskCode;

    /** 位置编号（ID） */
    @Excel(name = "位置编号", readConverterExp = "I=D")
    private String locationId;

    /** 位置名称 */
    @Excel(name = "位置名称")
    private String locationName;

    /** 危险源描述 */
    @Excel(name = "危险源描述")
    private String riskSourceDesc;

    /** 风险源类型ID */
    @Excel(name = "风险源类型ID")
    private String riskSourceTypeId;

    /** 风险源类型 */
    @Excel(name = "风险源类型")
    private String riskSourceType;

    /** 风险等级ID */
    @Excel(name = "风险等级ID")
    private String riskLevelId;

    /** 风险等级 */
    @Excel(name = "风险等级")
    private String riskLevel;

    /** 风险状态ID */
    @Excel(name = "风险状态ID")
    private String riskStatusId;

    /** 风险状态 */
    @Excel(name = "风险状态")
    private String riskStatus;

    /** 可能导致事故 */
    @Excel(name = "可能导致事故")
    private String causeAccident;

    /** 现场控制措施 */
    @Excel(name = "现场控制措施")
    private String siteControlMeasures;

    /** 专业类型ID */
    @Excel(name = "专业类型ID")
    private String professionalTypeId;

    /** 专业类型 */
    @Excel(name = "专业类型")
    private String professionalType;

    /** 计划任务ID */
    @Excel(name = "计划任务ID")
    private String scheduleTaskId;

    /** 计划任务 */
    @Excel(name = "计划任务")
    private String scheduleTask;

    /** 风险评估 */
    @Excel(name = "风险评估")
    private String riskAssessment;

    /** 部门ID */
    @Excel(name = "部门ID")
    private String orgId;

    /** 部门名称 */
    @Excel(name = "部门名称")
    private String orgName;

    /** 管控单位ID */
    @Excel(name = "管控单位ID")
    private String controlOrgId;

    /** 管控单位 */
    @Excel(name = "管控单位")
    private String controlOrg;

    /** 管理人ID */
    @Excel(name = "管理人ID")
    private String manageBy;

    /** 管理人 */
    @Excel(name = "管理人")
    private String manageByName;

    /** 监督人ID */
    @Excel(name = "监督人ID")
    private String supervisionBy;

    /** 监督人 */
    @Excel(name = "监督人")
    private String supervisionByName;

    /** 考核人ID */
    @Excel(name = "考核人ID")
    private String assessmentBy;

    /** 考核人 */
    @Excel(name = "考核人")
    private String assessmentByName;

    /** 管控目标 */
    @Excel(name = "管控目标")
    private String controlTarget;

    /** 管控方案 */
    @Excel(name = "管控方案")
    private String managePlan;

    /** 应急预案 */
    @Excel(name = "应急预案")
    private String energencyPlan;

    /** 管理程序 */
    @Excel(name = "管理程序")
    private String mangeProgram;

    /** 培训/监测 */
    @Excel(name = "培训/监测")
    private String trainMonitor;

    /** 管理状态 */
    @Excel(name = "管理状态")
    private String manageStatus;

    /** 台账级别 */
    @Excel(name = "台账级别")
    private String ledgerLevel;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createByName;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createAt;

    /** 更新人 */
    @Excel(name = "更新人")
    private String updateByName;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateAt;

    /** 排序 */
    @Excel(name = "排序")
    private Long sorting;

    /** 版本 */
    @Excel(name = "版本")
    private String version;

    /** 状态, 默认1(1:正常；2:冻结；98:关闭；99:删除)； */
    @Excel(name = "状态, 默认1(1:正常；2:冻结；98:关闭；99:删除)；")
    private Long status;

    /** 扩展字段1 */
    @Excel(name = "扩展字段1")
    private String extra1;

    /** 扩展字段2 */
    @Excel(name = "扩展字段2")
    private String extra2;

    /** 扩展字段3 */
    @Excel(name = "扩展字段3")
    private String extra3;

    /** 扩展字段4 */
    @Excel(name = "扩展字段4")
    private String extra4;

    /** 扩展字段5 */
    @Excel(name = "扩展字段5")
    private String extra5;

    /** 扩展字段6 */
    @Excel(name = "扩展字段6")
    private String extra6;

    /** 扩展字段7 */
    @Excel(name = "扩展字段7")
    private String extra7;

    /** 扩展字段8 */
    @Excel(name = "扩展字段8")
    private String extra8;

    /** 扩展字段9 */
    @Excel(name = "扩展字段9")
    private String extra9;

    /** 扩展字段10 */
    @Excel(name = "扩展字段10")
    private String extra10;

    /** 班组ID */
    @Excel(name = "班组ID")
    private String teamId;

    /** 专业科室ID */
    @Excel(name = "专业科室ID")
    private String professionalDepartId;

    /** 专业修订分配状态（安全局修订操作），默认0：未修订，1：已修订 */
    @Excel(name = "专业修订分配状态", readConverterExp = "安=全局修订操作")
    private String distributeStatus;

    /** 入库归档时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入库归档时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date archiveTime;

    public void setRiskLedgerId(String riskLedgerId)
    {
        this.riskLedgerId = riskLedgerId;
    }

    public String getRiskLedgerId()
    {
        return riskLedgerId;
    }
    public void setRiskCode(String riskCode)
    {
        this.riskCode = riskCode;
    }

    public String getRiskCode()
    {
        return riskCode;
    }
    public void setLocationId(String locationId)
    {
        this.locationId = locationId;
    }

    public String getLocationId()
    {
        return locationId;
    }
    public void setLocationName(String locationName)
    {
        this.locationName = locationName;
    }

    public String getLocationName()
    {
        return locationName;
    }
    public void setRiskSourceDesc(String riskSourceDesc)
    {
        this.riskSourceDesc = riskSourceDesc;
    }

    public String getRiskSourceDesc()
    {
        return riskSourceDesc;
    }
    public void setRiskSourceTypeId(String riskSourceTypeId)
    {
        this.riskSourceTypeId = riskSourceTypeId;
    }

    public String getRiskSourceTypeId()
    {
        return riskSourceTypeId;
    }
    public void setRiskSourceType(String riskSourceType)
    {
        this.riskSourceType = riskSourceType;
    }

    public String getRiskSourceType()
    {
        return riskSourceType;
    }
    public void setRiskLevelId(String riskLevelId)
    {
        this.riskLevelId = riskLevelId;
    }

    public String getRiskLevelId()
    {
        return riskLevelId;
    }
    public void setRiskLevel(String riskLevel)
    {
        this.riskLevel = riskLevel;
    }

    public String getRiskLevel()
    {
        return riskLevel;
    }
    public void setRiskStatusId(String riskStatusId)
    {
        this.riskStatusId = riskStatusId;
    }

    public String getRiskStatusId()
    {
        return riskStatusId;
    }
    public void setRiskStatus(String riskStatus)
    {
        this.riskStatus = riskStatus;
    }

    public String getRiskStatus()
    {
        return riskStatus;
    }
    public void setCauseAccident(String causeAccident)
    {
        this.causeAccident = causeAccident;
    }

    public String getCauseAccident()
    {
        return causeAccident;
    }
    public void setSiteControlMeasures(String siteControlMeasures)
    {
        this.siteControlMeasures = siteControlMeasures;
    }

    public String getSiteControlMeasures()
    {
        return siteControlMeasures;
    }
    public void setProfessionalTypeId(String professionalTypeId)
    {
        this.professionalTypeId = professionalTypeId;
    }

    public String getProfessionalTypeId()
    {
        return professionalTypeId;
    }
    public void setProfessionalType(String professionalType)
    {
        this.professionalType = professionalType;
    }

    public String getProfessionalType()
    {
        return professionalType;
    }
    public void setScheduleTaskId(String scheduleTaskId)
    {
        this.scheduleTaskId = scheduleTaskId;
    }

    public String getScheduleTaskId()
    {
        return scheduleTaskId;
    }
    public void setScheduleTask(String scheduleTask)
    {
        this.scheduleTask = scheduleTask;
    }

    public String getScheduleTask()
    {
        return scheduleTask;
    }
    public void setRiskAssessment(String riskAssessment)
    {
        this.riskAssessment = riskAssessment;
    }

    public String getRiskAssessment()
    {
        return riskAssessment;
    }
    public void setOrgId(String orgId)
    {
        this.orgId = orgId;
    }

    public String getOrgId()
    {
        return orgId;
    }
    public void setOrgName(String orgName)
    {
        this.orgName = orgName;
    }

    public String getOrgName()
    {
        return orgName;
    }
    public void setControlOrgId(String controlOrgId)
    {
        this.controlOrgId = controlOrgId;
    }

    public String getControlOrgId()
    {
        return controlOrgId;
    }
    public void setControlOrg(String controlOrg)
    {
        this.controlOrg = controlOrg;
    }

    public String getControlOrg()
    {
        return controlOrg;
    }
    public void setManageBy(String manageBy)
    {
        this.manageBy = manageBy;
    }

    public String getManageBy()
    {
        return manageBy;
    }
    public void setManageByName(String manageByName)
    {
        this.manageByName = manageByName;
    }

    public String getManageByName()
    {
        return manageByName;
    }
    public void setSupervisionBy(String supervisionBy)
    {
        this.supervisionBy = supervisionBy;
    }

    public String getSupervisionBy()
    {
        return supervisionBy;
    }
    public void setSupervisionByName(String supervisionByName)
    {
        this.supervisionByName = supervisionByName;
    }

    public String getSupervisionByName()
    {
        return supervisionByName;
    }
    public void setAssessmentBy(String assessmentBy)
    {
        this.assessmentBy = assessmentBy;
    }

    public String getAssessmentBy()
    {
        return assessmentBy;
    }
    public void setAssessmentByName(String assessmentByName)
    {
        this.assessmentByName = assessmentByName;
    }

    public String getAssessmentByName()
    {
        return assessmentByName;
    }
    public void setControlTarget(String controlTarget)
    {
        this.controlTarget = controlTarget;
    }

    public String getControlTarget()
    {
        return controlTarget;
    }
    public void setManagePlan(String managePlan)
    {
        this.managePlan = managePlan;
    }

    public String getManagePlan()
    {
        return managePlan;
    }
    public void setEnergencyPlan(String energencyPlan)
    {
        this.energencyPlan = energencyPlan;
    }

    public String getEnergencyPlan()
    {
        return energencyPlan;
    }
    public void setMangeProgram(String mangeProgram)
    {
        this.mangeProgram = mangeProgram;
    }

    public String getMangeProgram()
    {
        return mangeProgram;
    }
    public void setTrainMonitor(String trainMonitor)
    {
        this.trainMonitor = trainMonitor;
    }

    public String getTrainMonitor()
    {
        return trainMonitor;
    }
    public void setManageStatus(String manageStatus)
    {
        this.manageStatus = manageStatus;
    }

    public String getManageStatus()
    {
        return manageStatus;
    }
    public void setLedgerLevel(String ledgerLevel)
    {
        this.ledgerLevel = ledgerLevel;
    }

    public String getLedgerLevel()
    {
        return ledgerLevel;
    }
    public void setCreateByName(String createByName)
    {
        this.createByName = createByName;
    }

    public String getCreateByName()
    {
        return createByName;
    }
    public void setCreateAt(Date createAt)
    {
        this.createAt = createAt;
    }

    public Date getCreateAt()
    {
        return createAt;
    }
    public void setUpdateByName(String updateByName)
    {
        this.updateByName = updateByName;
    }

    public String getUpdateByName()
    {
        return updateByName;
    }
    public void setUpdateAt(Date updateAt)
    {
        this.updateAt = updateAt;
    }

    public Date getUpdateAt()
    {
        return updateAt;
    }
    public void setSorting(Long sorting)
    {
        this.sorting = sorting;
    }

    public Long getSorting()
    {
        return sorting;
    }
    public void setVersion(String version)
    {
        this.version = version;
    }

    public String getVersion()
    {
        return version;
    }
    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }
    public void setExtra1(String extra1)
    {
        this.extra1 = extra1;
    }

    public String getExtra1()
    {
        return extra1;
    }
    public void setExtra2(String extra2)
    {
        this.extra2 = extra2;
    }

    public String getExtra2()
    {
        return extra2;
    }
    public void setExtra3(String extra3)
    {
        this.extra3 = extra3;
    }

    public String getExtra3()
    {
        return extra3;
    }
    public void setExtra4(String extra4)
    {
        this.extra4 = extra4;
    }

    public String getExtra4()
    {
        return extra4;
    }
    public void setExtra5(String extra5)
    {
        this.extra5 = extra5;
    }

    public String getExtra5()
    {
        return extra5;
    }
    public void setExtra6(String extra6)
    {
        this.extra6 = extra6;
    }

    public String getExtra6()
    {
        return extra6;
    }
    public void setExtra7(String extra7)
    {
        this.extra7 = extra7;
    }

    public String getExtra7()
    {
        return extra7;
    }
    public void setExtra8(String extra8)
    {
        this.extra8 = extra8;
    }

    public String getExtra8()
    {
        return extra8;
    }
    public void setExtra9(String extra9)
    {
        this.extra9 = extra9;
    }

    public String getExtra9()
    {
        return extra9;
    }
    public void setExtra10(String extra10)
    {
        this.extra10 = extra10;
    }

    public String getExtra10()
    {
        return extra10;
    }
    public void setTeamId(String teamId)
    {
        this.teamId = teamId;
    }

    public String getTeamId()
    {
        return teamId;
    }
    public void setProfessionalDepartId(String professionalDepartId)
    {
        this.professionalDepartId = professionalDepartId;
    }

    public String getProfessionalDepartId()
    {
        return professionalDepartId;
    }
    public void setDistributeStatus(String distributeStatus)
    {
        this.distributeStatus = distributeStatus;
    }

    public String getDistributeStatus()
    {
        return distributeStatus;
    }
    public void setArchiveTime(Date archiveTime)
    {
        this.archiveTime = archiveTime;
    }

    public Date getArchiveTime()
    {
        return archiveTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("riskLedgerId", getRiskLedgerId())
            .append("riskCode", getRiskCode())
            .append("locationId", getLocationId())
            .append("locationName", getLocationName())
            .append("riskSourceDesc", getRiskSourceDesc())
            .append("riskSourceTypeId", getRiskSourceTypeId())
            .append("riskSourceType", getRiskSourceType())
            .append("riskLevelId", getRiskLevelId())
            .append("riskLevel", getRiskLevel())
            .append("riskStatusId", getRiskStatusId())
            .append("riskStatus", getRiskStatus())
            .append("causeAccident", getCauseAccident())
            .append("siteControlMeasures", getSiteControlMeasures())
            .append("professionalTypeId", getProfessionalTypeId())
            .append("professionalType", getProfessionalType())
            .append("scheduleTaskId", getScheduleTaskId())
            .append("scheduleTask", getScheduleTask())
            .append("riskAssessment", getRiskAssessment())
            .append("orgId", getOrgId())
            .append("orgName", getOrgName())
            .append("controlOrgId", getControlOrgId())
            .append("controlOrg", getControlOrg())
            .append("manageBy", getManageBy())
            .append("manageByName", getManageByName())
            .append("supervisionBy", getSupervisionBy())
            .append("supervisionByName", getSupervisionByName())
            .append("assessmentBy", getAssessmentBy())
            .append("assessmentByName", getAssessmentByName())
            .append("controlTarget", getControlTarget())
            .append("managePlan", getManagePlan())
            .append("energencyPlan", getEnergencyPlan())
            .append("mangeProgram", getMangeProgram())
            .append("trainMonitor", getTrainMonitor())
            .append("manageStatus", getManageStatus())
            .append("ledgerLevel", getLedgerLevel())
            .append("createBy", getCreateBy())
            .append("createByName", getCreateByName())
            .append("createAt", getCreateAt())
            .append("updateBy", getUpdateBy())
            .append("updateByName", getUpdateByName())
            .append("updateAt", getUpdateAt())
            .append("sorting", getSorting())
            .append("remark", getRemark())
            .append("version", getVersion())
            .append("status", getStatus())
            .append("extra1", getExtra1())
            .append("extra2", getExtra2())
            .append("extra3", getExtra3())
            .append("extra4", getExtra4())
            .append("extra5", getExtra5())
            .append("extra6", getExtra6())
            .append("extra7", getExtra7())
            .append("extra8", getExtra8())
            .append("extra9", getExtra9())
            .append("extra10", getExtra10())
            .append("teamId", getTeamId())
            .append("professionalDepartId", getProfessionalDepartId())
            .append("distributeStatus", getDistributeStatus())
            .append("archiveTime", getArchiveTime())
            .toString();
    }
}
